package com.shunda.ysdgj.manager.service.goods;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.shunda.ysdgj.model.dto.base.IdsDto;
import com.shunda.ysdgj.model.dto.goods.GoodsSpuFindDto;
import com.shunda.ysdgj.model.entity.goods.GoodsSpu;
import com.shunda.ysdgj.model.vo.goods.GoodsSpuSelectVo;
import com.shunda.ysdgj.model.vo.goods.GoodsSpuVo;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

public interface GoodsSpuService {
    public GoodsSpuSelectVo getSelectVoById(Long id);
    public Map<String, Long> getSpecCategoryIdsById(Long id);
    public List<GoodsSpuSelectVo> findByTitle(String title);
    public IPage<GoodsSpuVo> findByPage(GoodsSpuFindDto goodsSpuFindDto);
    public boolean add(String token, GoodsSpu goodsSpu);
    public boolean modify(GoodsSpu goodsSpu);
    public boolean modifySaleable(GoodsSpu goodsSpu);
    public boolean modifyValid(GoodsSpu goodsSpu);
    public boolean deleteByIds(IdsDto idsDto);
}
